/**
*  @author: yaoyuan
*  created: 2015.01.15
**/

import interceptor from './lib/interceptor';
import {url} from '../../resources/routeConfig'

export default function(req) {
	var inter = new interceptor(req),
		json;
	// 过滤地址和用户验证
	json = (inter.NoFilterUrl(url) || inter.VerificationUser()) ? inter.PseudoCode() : inter.PseudoCode('login');

	return json;
}